<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Order extends Model
{
    //
    protected $table = 'order';

    public function user(){

        return $this->hasOne(User::class,'id','user_id');
    }


    public function goods(){

        return $this->hasMany(OrderGood::class,'order_id','id');
    }




}
